package com.coment.enums;

public enum PushType {
   gift("gift", "礼物"),
   like("like", "点赞"),
   content("content", "评论"),
   fansclub("fansclub", "粉丝团");

   private final String value;
   private final String des;

   public static PushType fromValue(String value) {
      for(PushType type : values()) {
         if (type.getValue().equals(value)) {
            return type;
         }
      }

      throw new IllegalArgumentException("未知推送类型: " + value);
   }

   
   public String getValue() {
      return this.value;
   }

   
   public String getDes() {
      return this.des;
   }

   
   PushType(final String value, final String des) {
      this.value = value;
      this.des = des;
   }

   // $FF: synthetic method
   private static PushType[] $values() {
      return new PushType[]{gift, like, content, fansclub};
   }
}
